<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<${__}include "/common/resources.ftl"/>
<script type="text/javascript">
	function m_submit(){
		window.saveOrEditForm.submit();
	}
	
	function m_back(){
		window.location.href = 'manage';
	}
	<${__}if errorMsg?exists >alert('${_}{errorMsg}');</${__}if>
</script>
</head>
<body>
  <form action="${c.baseUrl}save_edit" method="post" class="loan_list_form" name="saveOrEditForm">
  <input type="hidden" name="${m.modelInfo.idProInfo.name}" value="<${__}if model?exists >${_}{model.${m.modelInfo.idProInfo.name}}</${__}if>" />
  <div class="fm_sty" style="margin: 20px 0px 0px;">
       <#list cols as col>
       	<#if !col.idFlag>
	       	<div class="ipt_line">
				<span class="ipt_title">${col.remark}</span>
       		<#if col.dataType=="date">
				<input type="text" name="${col.name}" value="<${__}if model?exists >${_}{model.${col.name}?string("yyyyMMdd HH:mm:ss")}</${__}if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
			<#elseif col.comboxKey?exists>
				<input type="text" id="${col.name}_id" name="${col.name}" style="height:39px;width:266px;" yixun_combobox="${col.comboxKey}" value="<${__}if model?exists >${_}{model.${col.name}}</${__}if>"/>
	       	<#else>
				<input type="text" name="${col.name}" value="<${__}if model?exists >${_}{model.${col.name}}</${__}if>" class="ipt_226" />
       		</#if>
			</div>
		</#if>
        <${__}if model?exists >
        <${__}else>
        </${__}if>
	  </#list>
      <div class="ipt_line_long">
            <button class="red_100" onclick="javascript:m_submit();return false;">保存</button>
            <button class="red_100" onclick="javascript:m_back();return false;" style="background-color:#74D86A">返回</button>
      </div>
	</div>
	</form>
</body>
</html>